<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>项目创建页</title>
    <link type="text/css" rel="stylesheet" href="/static/bt/bootstrap-3.3.5/css/bootstrap.min.css">
    <script type="text/javascript" src="/static/bt/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript" src="/static/bt/bootstrap-3.3.5/js/bootstrap.js"></script>
    <script type="text/javascript">

        function  save(){
            var name =$("[name='name']").val();
            if($.trim(name)=="")
            {
                parent.layer.msg("项目名称不能空")
                return ;
            }
            var type=$("[name='type']").filter(":checked").val();
            /**
             * "/project/createProject",{
                name:name,
                type:type
            },function(data){

            }
             */
            $.ajax({
                url:"/project/createProject",
                data:{
                    name:name,
                    type:type,
                },
                async:false,
                success:function(data){

                }
            })
            return true;
        }
    </script>
    <style type="text/css">
        .row{
            margin-top:10px
        }
    </style>
</head>
<body>
<div class="container">
   <div class="row">
       <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
           <div>
               <label class="control-label">项目名称</label>
               <input class="form-control" name="name">
           </div>
       </div>
   </div>

   <div class="row">
       <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">

           <label class="control-label">项目类型</label>
           <div>

               <div class="radio">
                   <label>
                       <input type="radio" name="type" value="all"> 全局
                   </label>
               </div>
               <div class="radio">
                   <label>
                       <input type="radio" name="type" checked value="one"> 个人
                   </label>
               </div>

           </div>
       </div>

   </div>

</div>
</body>
</html>